﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Renci.iRods.Common;

namespace Renci.iRods.Packets
{
    //#define MiscSvrInfo_PI "int serverType; int serverBootTime; str relVersion[NAME_LEN]; str apiVersion[NAME_LEN]; str rodsZone[NAME_LEN];"
    [Packet("MiscSvrInfo_PI")]
    internal class ServerInformationPacket : Packet
    {
        [PacketField("serverType", 0, DataTypes.Int)]
        public int ServerType { get; set; }

        [PacketField("serverBootTime", 1, DataTypes.Int)]
        public DateTime ServerBootTime { get; set; }

        [PacketField("relVersion", 2, DataTypes.String)]
        public string ReleaseVersion { get; set; }

        [PacketField("apiVersion", 3, DataTypes.String)]
        public string ApiVersion { get; set; }

        [PacketField("rodsZone", 4, DataTypes.String)]
        public string RodsZone { get; set; }

    }
}
